package com.purdue.edu.psychotron.client.entity;

import java.io.Serializable;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Entity;

import com.purdue.edu.psychotron.shared.UUID;

@SuppressWarnings("serial")
@Entity
public class Item implements Serializable {
        @Id
        private String itemId;
        private Category itempType;
        private String name;
        

        public Item() {
        }

        public static class Builder {
                private Item item;

                public Builder(Item item) {
                        this.item = item;
                }

                public Builder(String name) {
                        this.item = new Item();
                        this.item.name = name;
                        this.item.itemId = UUID.randomUUID();
                }

                public Item build() {
                        return this.item;
                }
        }

        public String getItemId() {
                return itemId;
        }

        public Category getItempType() {
                return itempType;
        }

        public String getName() {
                return name;
        }


}